<?php

$env = env::getInstance();
if (!$env->getAttribute('psp'))
    $env->setAttribute('psp', $params['page']);

if (!defined("MODEL2_INCLUDE_PATH"))
	define("MODEL2_INCLUDE_PATH", substr($GLOBALS['cfgPaths']['lib'], 0, strlen($GLOBALS['cfgPaths']['lib'])-1));
if (!defined("MODEL2_DOJO_URL"))
	define("MODEL2_DOJO_URL", $GLOBALS['cfgPaths']['imgresUrl']."dojo/");
if (!defined("MODEL2_JSEXTRAS_URL"))
	define("MODEL2_JSEXTRAS_URL", $GLOBALS['cfgPaths']['imgresUrl']);
include_once($GLOBALS['cfgPaths']['lib'].'phpinchains/core.php');
PHPinChains::prepareAndStartChain($GLOBALS['cfgPaths']['lib']."cms/methods/inc/includepsp/app.xml");

?>